<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>

<html lang="es">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Bxip</title>
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <meta name="description" content="">
        <meta name="author" content="">
        <!-- Le styles -->
        <link href="resources/css/style.css" rel="stylesheet">
        <script src="resources/js/jquery.js"></script>
        <script src="resources/js/bootstrap.min.js"></script>
        <script src="resources/js/bootstrap-datepicker.js"></script>
        <script src="resources/js/js.js"></script>
        <script src="resources/js/bxipjs.js"></script>
        <script src="resources/media/js/jquery.dataTables.js"></script>
        <style>
            body {
                padding-top: 60px; /* 60px to make the container go all the way to the bottom of the topbar */
            }
        </style>
        <link href="resources/css/bootstrap-responsive.css" rel="stylesheet">
        <!-- HTML5 shim, for IE6-8 support of HTML5 elements -->
        <!--[if lt IE 9]>
          <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
        <![endif]-->

        <script>
            window.onload = loadMainEvents();
        </script>

    </head>


    <body>
        <jsp:include page="includes/header.jsp"/>


        <div class="container">
            <!--contenido de la izquierda-->

            <div id="left_content" class="span6 offset1">

                <h4>Últimos eventos</h4>
                <hr>

                <div id="latest_events">

                </div>
                <h4>Más populares</h4>
                <hr>
                <div id="most_popular">

                </div>


                <h4>Finalizan hoy</h4>
                <hr>
                <div id="today_events">

                </div>


                <!--boton enviar evento-->
                <!--<button id="btn_create_event" class="btn btn-primary" href="#test_modal" data-toggle="modal" type="button">Crear evento</button>-->

                <!--div que aparece al darle a crear evento-->
                <div class="modal fade" id="test_modal">
                    <div class="modal-header">
                        <a class="close" data-dismiss="modal">&times;</a>
                        <h3>Crear evento</h3>
                    </div>

                    <div class="modal-body">
                     Solo administradores pueden crear eventos
                    </div>
                    <div class="modal-footer">
                        <a href="#" class="btn" data-dismiss="modal">Cancelar</a>
                        <a href="#" class="btn btn-primary" id="send_create_event" onclick="send_create_event()">Enviar</a>
                    </div>
                </div>



            </div>

            <div id="rigth_content" class="span4">
                <img src="resources/img/facebook-box.png" class="img-rounded pull-right"/>
            </div>
        </div> 


        <jsp:include page="includes/footer.jsp"/>

        <!-- Le javascript
        ================================================== 
        <!-- Placed at the end of the document so the pages load faster -->

        <!--  <script src="resources/js/bootstrap-transition.js"></script>
           <script src="resources/js/bootstrap-alert.js"></script>
           <script src="resources/js/bootstrap-modal.js"></script>
           <script src="resources/js/bootstrap-dropdown.js"></script>
           <script src="resources/js/bootstrap-scrollspy.js"></script>
           <script src="resources/js/bootstrap-tab.js"></script>
           <script src="resources/js/bootstrap-tooltip.js"></script>
           <script src="resources/js/bootstrap-popover.js"></script>
           <script src="resources/js/bootstrap-button.js"></script>
           <script src="resources/js/bootstrap-collapse.js"></script>
           <script src="resources/js/bootstrap-carousel.js"></script>
           <script src="resources/js/bootstrap-typeahead.js"></script>-->

        <script type="text/javascript">
            //            console.log(localStorage.username);
            if (document.body.className === undefined) {
                document.getElementById('index_login_button').style.display = 'none';
            } else {
                document.getElementById('index_login_button').style.display = '';
            }
        </script>



    </body>
</html>



